/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.givebonus.entity.BonusSetting
   Module Description   :

   Date Created      : 2010/11/8
   Original Author   : afra.chou
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.givebonus.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author afra.chou
 * 
 */
@Entity
@Table(name = "EC_BONUS_SETTING")
public class BonusSetting extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1581272782477095798L;

	/**
	 * 系統流水號
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_bonus_setting")
	@SequenceGenerator(name = "seq_ec_bonus_setting", sequenceName = "seq_ec_bonus_setting")
	@Column(name = "id", length = 20, nullable = false)
	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "start_date", nullable = false)
	private Date startDt;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "end_date", nullable = false)
	private Date endDt;

	@Column(name = "percentage", columnDefinition = "numeric(10,2)")
	private BigDecimal percentage = BigDecimal.ZERO;

	@Column(name = "discount_limit", columnDefinition = "numeric(10,2)")
	private BigDecimal discountLimit = BigDecimal.ZERO;

	@Column(name = "order_price_min", columnDefinition = "numeric(10,2)")
	private BigDecimal orderPriceMin = BigDecimal.ZERO;

	@Column(name = "order_price_max", columnDefinition = "numeric(10,2)")
	private BigDecimal orderPriceMax = BigDecimal.ZERO;

	@Column(name = "status", length = 5, nullable = false)
	private String status;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}

	public BigDecimal getPercentage() {
		return percentage;
	}

	public void setPercentage(BigDecimal percentage) {
		this.percentage = percentage;
	}

	public BigDecimal getDiscountLimit() {
		return discountLimit;
	}

	public void setDiscountLimit(BigDecimal discountLimit) {
		this.discountLimit = discountLimit;
	}

	public BigDecimal getOrderPriceMin() {
		return orderPriceMin;
	}

	public void setOrderPriceMin(BigDecimal orderPriceMin) {
		this.orderPriceMin = orderPriceMin;
	}

	public BigDecimal getOrderPriceMax() {
		return orderPriceMax;
	}

	public void setOrderPriceMax(BigDecimal orderPriceMax) {
		this.orderPriceMax = orderPriceMax;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
